Ownership in Design Patterns
نویسندگان
چکیده
Ownership is the concept of structuring the object store into different contexts by enabling objects to be the owner of other objects. All objects with the same owner are said to be in the same context. Restricting aliasing of objects in other contexts enables local reasoning about code correctness and simplifies comprehension and maintenance of program code. So far, different ownership type systems have been proposed and proven to be sound. While many of them look very promising on small examples, the question of practical usage for large and complicated applications remains unanswered. One approach to answer the question of practical usage of ownership type systems is to review the concept of ownership when applied to design patterns. Design patterns are of great importance and widely used in practice. They structure core ideas of an application’s design and we therefore believe that revealing problems and showing the benefits of ownership in connection with design patterns is essential for an evaluation of practical usage. After a short introduction to three major ownership type systems, this thesis identifies beneficial ownership structures for all design patterns, covered in Design Patterns: Elements of Reusable Object-Oriented Software [GHJV95], and discusses feasibility under each reviewed ownership type system. After discussing all patterns separately, possible pattern combinations are reviewed in terms of ownership through a small Java GUI application and the Swing GUI toolkit. We show that the concept of ownership succeeds to enhance many pattern implementations. However, the reviewed ownership type systems still lack the necessary flexibility to successfully tackle all posed design scenarios. As a result, the main problems are identified and listed.
منابع مشابه
Make Versus Buy in Trucking: Asset Ownership, Job Design, and Information
Explaining patterns of asset ownership is a central goal of both organizational economics and industrial organization. We develop a model of asset ownership in trucking, which we test by examining how the adoption of different classes of on-board computers (OBCs) between 1987 and 1997 in uenced whether shippers use their own trucks for hauls or contract with for-hire carriers. We nd that OBC...
متن کاملSimultaneous Allocation Of Reliability & Redundancy Using Minimum Total Cost Of Ownership Approach
This paper addresses the mixed integer reliability redundancy allocation problems to determine simultaneous allocation of optimal reliability and redundancy level of components based on three objective goals. System engineering principles suggest that the best design is the design that maximizes the system operational effectiveness and at the same time minimizes the total cost of ownership (TCO...
متن کاملThe Built Environment and Motor Vehicle Ownership and Use: Evidence from Santiago de Chile
This paper examines the relationships between the built environment—both ‘neighborhood’ design characteristics and relative location—and motor vehicle ownership and use in a rapidly motorising, developing city context, that of Santiago de Chile. A vehicle choice model suggests that income dominates the household vehicle ownership decision, but also detects a relationship between several built e...
متن کاملThe US gun stock: results from the 2004 national firearms survey.
OBJECTIVES To examine the size and composition of the privately held firearm stock in the US; and to describe demographic patterns of firearm ownership and motivations for ownership. DESIGN, SETTING AND PARTICIPANTS A nationally representative household telephone survey of 2770 adults aged>or=18 years living in the US, conducted in the spring of 2004. MAIN OUTCOME MEASURE Responses to quest...
متن کاملCollaborative Ownership in Cross-Cultural Educational Digital Library Design
This paper details research into building a Collaborative Educational Resource Design model by investigating two contrasting Kenyan / UK design case-studies and an evaluation of end-users and designers’ perceptions of digital libraries and their usage patterns. The two case-studies compared are; case study 1 based on formal learning in an African university digital library. Case study 2 is cent...
متن کامل